<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div id="content_work">
	<!-- 컨텐츠 -->
	<div class="work_contents">
		<h1>
			<img
				src="https://www.elandscout.com/images/newcomer/title_newcomer.gif"
				alt="타이틀 이미지">
		</h1>
		<ul class="new_menu">
			<li><a href=""><img
					src="https://www.elandscout.com/images/newcomer/tab01.gif"
					alt="기본 학력사항"></a></li>
			<li><a href=""><img
					src="https://www.elandscout.com/images/newcomer/tab02.gif"
					alt="경력사항"></a></li>
			<li><img
				src="https://www.elandscout.com/images/newcomer/tab03_a.gif"
				alt="외국어자격"></li>
			<li><a href=""><img
					src="https://www.elandscout.com/images/newcomer/tab04.gif"
					alt="자기소개"></a></li>
			<li class="last"><a
				href=""><img
					src="https://www.elandscout.com/images/newcomer/tab05.gif"
					alt="제출하기"></a></li>
		</ul>
		<p>
			<img src="https://www.elandscout.com/images/newcomer/txt01.gif"
				alt="각단계마다 지원서를 저장하시면 모든 단계의 내용을 수정/삭제 하실수 있습니다. 제출을 선택하면 최종 입사지원이 완료되어 수정및삭제가 불가능하니 유의하시기 바랍니다.">
		</p>
		<form id="from" method="post">
			<!-- 수상경력 -->
			<table width="710" border="0" cellspacing="0" cellpadding="0"
				class="new_from01">
				<caption>
					<div class="recruit_title">
						</div>
					<br> <b>*&nbsp;표시 항목들은 저장 후 다음단계로 넘어가기 위해 필수적으로 기입하셔야 합니다.
						<br>최종제출(최종지원)을 위해서는 *&nbsp;&gt;없는 항목까지 전 항목 기입하셔야 합니다.
					</b> <br> <br> <img
						src="https://www.elandscout.com/images/newcomer/premier.gif"
						alt="수상경력">

				</caption>

				<tbody>
					<tr>
						<th>수상내역</th>
						<th>수여일</th>
						<th>수여자(기관)</th>
						<th>포상사유</th>
					</tr>
					<tr>
		
						<td><input id="awd_desc" name="awd_desc" type="text" class="new_txtfrom"
							maxlength="20" style="width: 110px;"></td>
						<td><input id="award_yy" name="award_yy" maxlength="4"
							type="text" class="new_txtfrom" style="width: 30px;"> 년 <input
							id="award_mm" name="award_mm" maxlength="2" type="text"
							class="new_txtfrom" style="width: 15px;"> 월 <input
							id="award_dd" name="award_dd" maxlength="2" type="text"
							class="new_txtfrom" style="width: 15px;"> 일 <input
							type="hidden" name="awd_ymd" id="awd_ymd"></td>
						<td><input id="awd_org_nm" name="awd_org_nm" type="text" maxlength="20"
							class="new_txtfrom" style="width: 140px;"></td>
						<td class="last"><input id="awd_remark" name="awd_remark" type="text"
							maxlength="100" class="new_txtfrom" style="width: 250px;"></td>
					</tr>
					<!-- <tr>
          <td><input name="award_desc" type="text" class="new_txtfrom" maxlength="20" style="width:110px;"></td>
          <td>
          	 <input name="award_yy" maxlength="4" type="text" class="new_txtfrom" style="width:30px;"> 년
            <input name="award_mm" maxlength="2" type="text" class="new_txtfrom" style="width:15px;"> 월  
            <input name="award_dd" maxlength="2" type="text" class="new_txtfrom" style="width:15px;"> 일
       	</td>
          <td><input name="award_org" type="text" maxlength="20" class="new_txtfrom" style="width:140px;"></td>
          <td class="last"><input name="award_remarks" type="text" maxlength="100" class="new_txtfrom" style="width:250px;"></td>
        </tr>
         <tr>
          <td><input name="award_desc" type="text" class="new_txtfrom" maxlength="20" style="width:110px;"></td>
          <td>
          	 <input name="award_yy" maxlength="4" type="text" class="new_txtfrom" style="width:30px;"> 년
            <input name="award_mm" maxlength="2" type="text" class="new_txtfrom" style="width:15px;"> 월  
            <input name="award_dd" maxlength="2" type="text" class="new_txtfrom" style="width:15px;"> 일
       	</td>
          <td><input name="award_org" type="text" maxlength="20" class="new_txtfrom" style="width:140px;"></td>
          <td class="last"><input name="award_remarks" type="text" maxlength="100" class="new_txtfrom" style="width:250px;"></td>
        </tr> -->
				</tbody>
			</table>

			<input type="hidden" name="app_num" value="${sessionScope.app_num }">

			<!-- 자격면허 -->
			<table width="710" border="0" cellspacing="0" cellpadding="0"
				class="new_from01">

				<caption>
					<img src="https://www.elandscout.com/images/newcomer/license.gif"
						alt="자격면허">&nbsp;&nbsp;* 검색 창에 본인의 자격면허가 검색되지 않으실 때에는 “기타”로
					검색 후 직접 입력해 주시기 바랍니다.
				</caption>
				<tbody>
					<tr>
						<th>자격면허명</th>
						<th>취득점수 및 등급</th>
						<th>취득일</th>
						<th>자격기관</th>
					</tr>
					<tr>
						<td><input name="certi_nm" maxlength="20" type="text"
							class="new_txtfrom va_m" style="width: 130px;"><!-- <img
							src="https://www.elandscout.com/images/newcomer/btn_search2.gif"
							alt="검색" style="cursor: 'hand'"
							onclick=""
							class="va_m"> --><!-- <img
							src="https://www.elandscout.com/images/newcomer/delete.gif"
							alt="삭제" style="cursor: 'hand'"
							onclick="" width="15"
							height="15" class="va_m"> --></td>
						<td><input name="certi_lev" maxlength="5" type="text"
							class="new_txtfrom" style="width: 145px;"></td>
							
						<td><input id="certi_yy" name="certi_yy" maxlength="4" type="text"
							class="new_txtfrom" style="width: 30px;"> 년 
							
						<input id="certi_mm"	name="certi_mm" maxlength="2" type="text" class="new_txtfrom"
							style="width: 15px;"> 월
							
							
							<input id="certi_dd"	name="certi_dd" maxlength="2" type="text" class="new_txtfrom"
							style="width: 15px;"> 일
							
							<input type="hidden" name="certi_ym" id="certi_ym" value="">
							</td>
							
						<td class="last"><input name="certi_org" maxlength="20"
							type="text" class="new_txtfrom" style="width: 150px;"></td>
					</tr>
					<!--  <tr>
          <td><input name="certi_type_desc" maxlength="20" type="text" class="new_txtfrom va_m" style="width:130px;" disabled=""><img src="https://www.elandscout.com/images/newcomer/btn_search2.gif" alt="검색" style="cursor:'hand'" onclick="javascript:searchCerti(document.form, '2');" class="va_m"><img src="https://www.elandscout.com/images/newcomer/delete.gif" alt="삭제" style="cursor:'hand'" onclick="javascript:DelCerti(document.form, '2');" width="15" height="15" class="va_m"></td>
          <td><input name="certi_level" maxlength="5" type="text" class="new_txtfrom" style="width:145px;"></td>
          <td><input name="certi_yy" maxlength="4" type="text" class="new_txtfrom" style="width:30px;"> 년
            	<input name="certi_mm" maxlength="2" type="text" class="new_txtfrom" style="width:15px;"> 월
           </td>
          <td class="last"><input name="certi_org" maxlength="20" type="text" class="new_txtfrom" style="width:220px;"></td>
        </tr> -->
				</tbody>
			</table>
			<!-- 외국어 -->
			<table width="710" border="0" cellspacing="0" cellpadding="0"
				class="new_from01">
				<caption>
					<img src="https://www.elandscout.com/images/newcomer/language.gif"
						alt="외국어"><br> <br> * 중국어 점수 HSK(중국어시험)은
					‘1~11급’으로, 신HSK는 ‘1~6급’으로 입력해주세요. <br> * 토익 점수를 기재하실 경우, 2년
					이내에 응시한 공인 인증된 토익 성적을 기입하셔야 합니다.
				</caption>
				<tbody>
					<tr>
						<th>외국어명</th>
						<th>시험명</th>
						<th>취득일</th>
						<th>점수&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;급수</th>
						<th>회화수준</th>
					</tr>
					<!-- 영어 -->
					<tr>
						<td><select name="test_cd" class="select_bx01"
							style="width: 100px;"><option value="9B01">영어</option></select></td>
						<td><select name="lang_cd" class="select_bx01"
							onchange="javascript:changeLangTest(document.form, 0);"
							style="width: 130px;"><option value="9A00">-</option>
								<option value="9A01">TOEIC</option>
								<option value="9A02">TOEFL(PBT)</option>
								<option value="9A05">TEPS</option>
								<option value="9A06">TOEFL(CBT)</option>
								<option value="9A09">TOEFL(IBT)</option>
								<option value="9A10">IELTS</option>
								<option value="9A11">OPIc(영어)</option>
								<option value="9A12">TOPIC</option>
								<option value="9A14">토익스피킹</option>
								<option value="9A99">기타</option></select> <br> <input type="text"
							name="lang_test_name" style="display: none;" disabled=""
							maxlength="10" class="new_txtfrom"></td>
						<td><input id="lang_yy" name="lang_yy" maxlength="4"
							type="text" class="new_txtfrom" style="width: 28px;"> 년 <input
							id="lang_mm" name="lang_mm" maxlength="2" type="text"
							class="new_txtfrom" style="width: 12px;"> 월 <input
							id="lang_dd" name="lang_dd" maxlength="2" type="text"
							class="new_txtfrom" style="width: 12px;"> 일 <input
							type="hidden" name="lang_ymd" id="lang_ymd"></td>
						<td><input name="lang_point" type="text" maxlength="7"
							class="new_txtfrom" style="width: 35px; text-align: right;">
							<select name="lang_test_cd" style="width: 40px;"
							class="select_bx01"><option value="">-</option>
								<option value="9C01">점</option>
								<option value="9C02">급</option>
						</select></td>
						<td class="last"><select name="lang_lev_cd"
							class="select_bx01" style="width: 180px;">
								<option value="" selected="">-</option>
								<option value="5">5.네이티브스피커에 준함</option>
								<option value="4">4.비(非)네이티브스피커 중 최상수준</option>
								<option value="3">3.듣고 말하기가 비교적 유창한 정도</option>
								<option value="2">2.유창하진 않으나 해외생활(여행) 가능</option>
								<option value="1">1.길안내, 상품구매 등 간단회화 가능</option>
						</select></td>
					</tr>
					<!--         영어/중국어
         <tr>
          <td>
          		
          			<select name="opt_lang_2" id="opt_lang_2" class="select_bx01" style="width:100px;" onchange="LanChoice2(this.value);">
					<option value="9B01">영어</option>
					<option value="9B02" selected="">중국어</option>
				</select>
          		
          </td>
          <td>
          		<div id="lang_div_2"><select name="opt_lang_test" class="select_bx01" onchange="javascript:changeLangTest(document.form, 1);" style="width:130px;"><option value="">-</option><option value="9A07">HSK(중국어시험)</option><option value="9A13">신HSK</option><option value="9A99">기타</option></select></div>
          		<input type="text" name="lang_test_name" style="display:none;" disabled="" maxlength="10" class="new_txtfrom">
          </td>
          <td>
          	 <input name="lang_yy" maxlength="4" type="text" class="new_txtfrom" style="width:28px;"> 년
            <input name="lang_mm" maxlength="2" type="text" class="new_txtfrom" style="width:12px;"> 월  
            <input name="lang_dd" maxlength="2" type="text" class="new_txtfrom" style="width:12px;"> 일
       	</td>
          <td><input name="lang_points" type="text" maxlength="7" class="new_txtfrom" style="width:35px;text-align:right;"> <select name="opt_test_type" style="width:40px;" class="select_bx01"><option value="">-</option>
<option value="9C01">점</option>
<option value="9C02">급</option>
</select></td>
          <td class="last">
         	 	<select name="opt_lang_level" class="select_bx01" style="width:220px;">
				<option value="" selected="">-</option>
				<option value="5.네이티브스피커에 준함">5.네이티브스피커에 준함</option>
				<option value="4.비(非)네이티브스피커 중 최상수준">4.비(非)네이티브스피커 중 최상수준</option>
				<option value="3.듣고 말하기가 비교적 유창한 정도">3.듣고 말하기가 비교적 유창한 정도</option>
				<option value="2.유창하진 않으나 해외생활(여행) 가능">2.유창하진 않으나 해외생활(여행) 가능</option>
				<option value="1.길안내, 상품구매 등 간단회화 가능">1.길안내, 상품구매 등 간단회화 가능</option>
			</select>
          </td>
        </tr> -->
					<!-- 영어/중국어/일본어 -->
					<!--          <tr>
          <td>
          		
          			<select name="opt_lang_3" id="opt_lang_3" class="select_bx01" style="width:100px;" onchange="LanChoice3(this.value);">
					<option value="9B01">영어</option>
					<option value="9B02">중국어</option>
					<option value="9B03" selected="">일본어</option>
				</select>
          		
          </td>
          <td>
          		<div id="lang_div_3"><select name="opt_lang_test" class="select_bx01" onchange="javascript:changeLangTest(document.form, 2);" style="width:130px;"><option value="">-</option><option value="9A04">JPT(일본어능력시험)</option><option value="9A08">JLPT(일본어능력시험)</option><option value="9A99">기타</option></select></div>
          		<input type="text" name="lang_test_name" style="display:none;" disabled="" maxlength="10" class="new_txtfrom">
          </td>
          <td>
          	 <input name="lang_yy" maxlength="4" type="text" class="new_txtfrom" style="width:28px;"> 년
            <input name="lang_mm" maxlength="2" type="text" class="new_txtfrom" style="width:12px;"> 월  
            <input name="lang_dd" maxlength="2" type="text" class="new_txtfrom" style="width:12px;"> 일
       	</td>
          <td><input name="lang_points" type="text" maxlength="7" class="new_txtfrom" style="width:35px;text-align:right;"> <select name="opt_test_type" style="width:40px;" class="select_bx01"><option value="">-</option>
<option value="9C01">점</option>
<option value="9C02">급</option>
</select></td>
          <td class="last">
      		
         	 		<select name="opt_lang_level" class="select_bx01" style="width:220px;">
					<option value="" selected="">-</option>
					<option value="5.네이티브스피커에 준함">5.네이티브스피커에 준함</option>
					<option value="4.비(非)네이티브스피커 중 최상수준">4.비(非)네이티브스피커 중 최상수준</option>
					<option value="3.듣고 말하기가 비교적 유창한 정도">3.듣고 말하기가 비교적 유창한 정도</option>
					<option value="2.유창하진 않으나 해외생활(여행) 가능">2.유창하진 않으나 해외생활(여행) 가능</option>
					<option value="1.길안내, 상품구매 등 간단회화 가능">1.길안내, 상품구매 등 간단회화 가능</option>
				</select>
      		
          </td>
         </tr> -->
					<!-- 기타언어 -->
					<!--     <tr>
          <td>
          		<select name="opt_lang_type" class="select_bx01" style="width:100px;"><option value="9B99">기타언어</option>
<option value="9B09">프랑스어</option>
<option value="9B08">러시아어</option>
<option value="9B07">베트남어</option>
<option value="9B06">스페인어</option>
<option value="9B05">인도어</option>
<option value="9B04">이태리어</option>
</select>
          </td>
          <td>
          		<select name="opt_lang_test" class="select_bx01" onchange="javascript:changeLangTest(document.form, 3);" style="width:130px;"><option value="">-</option><option value="9A99">기타</option><option value="9A99">기타</option></select>
          		<br><input type="text" name="lang_test_name" style="display:none;" disabled="" maxlength="10" class="new_txtfrom">
          </td>
          <td>
          	 <input name="lang_yy" maxlength="4" type="text" class="new_txtfrom" style="width:28px;"> 년
            <input name="lang_mm" maxlength="2" type="text" class="new_txtfrom" style="width:12px;"> 월  
            <input name="lang_dd" maxlength="2" type="text" class="new_txtfrom" style="width:12px;"> 일
       	</td>
          <td><input name="lang_points" type="text" maxlength="7" class="new_txtfrom" style="width:35px;text-align:right;"> <select name="opt_test_type" style="width:40px;" class="select_bx01"><option value="">-</option>
<option value="9C01">점</option>
<option value="9C02">급</option>
</select></td>
          <td class="last">
         	 	<select name="opt_lang_level" class="select_bx01" style="width:220px;">
					<option value="" selected="">-</option>
					<option value="5.네이티브스피커에 준함">5.네이티브스피커에 준함</option>
					<option value="4.비(非)네이티브스피커 중 최상수준">4.비(非)네이티브스피커 중 최상수준</option>
					<option value="3.듣고 말하기가 비교적 유창한 정도">3.듣고 말하기가 비교적 유창한 정도</option>
					<option value="2.유창하진 않으나 해외생활(여행) 가능">2.유창하진 않으나 해외생활(여행) 가능</option>
					<option value="1.길안내, 상품구매 등 간단회화 가능">1.길안내, 상품구매 등 간단회화 가능</option>
			</select>
          </td>
        </tr> -->
				</tbody>
			</table>


			<!-- 해외근무 희망여부 -->
			<table width="710" border="0" cellspacing="0" cellpadding="0"
				class="new_from01">
				<caption>
					*&nbsp;<img
						src="https://www.elandscout.com/images/newcomer/hope.gif">
				</caption>
				<tbody>
					<tr>
						<th style="width: 150px;">희망하는 해외 근무지 국가명</th>
						<td style="width: *;"><input name="hope_nm" type="text"
							maxlength="20" class="new_txtfrom" style="width: 180px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;




						
					</tr>
					<tr>
						<th colspan="2">희망하는 사유와 본인이 생각하는 준비정도를 적어 주십시오(200자 미만) <span
							id="idhopeReason" class="kor" style="color: 990000"></span></th>
					</tr>
					<tr>
						<td colspan="2"><textarea name="hope_reason" id="textarea"
								cols="50" rows="7" style="width: 680px; height: 50px;"
								class="new_textarea"></textarea></td>
					</tr>
		
				</tbody>
			</table>
</form>
		<!--       <table width="710" border="0" cellspacing="0" cellpadding="0" class="new_from02">
 </table> -->
		<div id="winWaiting" style="display: none;">
			<table width="710" border="0" cellspacing="0" cellpadding="0"
				height="100%">
				<tbody>
					<tr>
						<td valign="middle" align="center">
							<table width="300" border="0" cellspacing="1" cellpadding="0"
								align="center" bgcolor="#ffffff">
								<tbody>
									<tr>
										<td
											style="background-color: #ffffff; border: 1px solid #c6c6ab;">
											<table width="300" border="0" cellspacing="0" cellpadding="0">
												<tbody>
													<tr>
														<td height="30" align="center">잠시만 기다려 주십시오.</td>
													</tr>
												</tbody>
											</table>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="al_c ma_t30">
			<img id="etc_save"
				src="https://www.elandscout.com/images/newcomer/btn_save.gif"
				style="cursor: pointer;" alt="저장"><a
				href="javascript:senditNextIntro(${sessionScope.app_num })"><img
				src="https://www.elandscout.com/images/newcomer/btn_next.gif"
				alt="다음">
				</a>
		</div>
	</div>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
	function senditNextIntro(url) {
		location.href = "app_self_insert.do?app_num="+url;
	} 
	$(function() {
		/* jQuery.ajaxSettings.traditional = true; */
		$("#etc_save").click(function(){
					var awd_ymd = $("#award_yy").val() + "-";
					awd_ymd += $("#award_mm").val() + "-";
					awd_ymd += $("#award_dd").val();
					$("#awd_ymd").attr("value", awd_ymd);

					var lang_ymd = $("#lang_yy").val() + "-";
					lang_ymd += $("#lang_mm").val() + "-";
					lang_ymd += $("#lang_dd").val();

					$("#lang_ymd").attr("value", lang_ymd);
					
					certi_yy ,certi_mm ,certi_dd, certi_ym
					
					
					var certi_ym = $("#certi_yy").val() + "-";
					certi_ym += $("#certi_mm").val() + "-";
					certi_ym += $("#certi_dd").val();
					
					$("#certi_ym").attr("value", certi_ym);
					
					//유효성 검사
					if($("#awd_desc").val()==""){
						alert("수상내역을 입력하세요")
					}else if($("#award_yy").val()==""){
						alert("수여일을 입력하세요")
					}else if($("#award_mm").val()==""){
						alert("수여일을 입력하세요")
					}else if($("#award_dd").val()==""){
						alert("수여일을 입력하세요")
					}else if($("#awd_org_nm").val()==""){
						alert("수여자 항목을 입력하세요")
					}else if($("#awd_remark").val()==""){
						alert("포상사유 항목을 입력하세요")
					}else{
						$.ajax({
							url : "app_etc_insertok.do",
							dataType : "text",
							data:"post",
							data : $("#from").serialize(),
							success : function(data) {
								console.log(data);
								alert(data);
							},
							error : function(request, status, error) {

								console.log("code:" + request.status + "\n"
										+ "message:" + request.responseText + "\n"
										+ "error:" + error);
							}
						});
					}
				
				});
	});
</script>

	<!-- 컨텐츠 -->
</div>
